<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>未审核商户查询</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
    <!-- 当前页面样式 -->
    <link rel="stylesheet" href="<s:url value="/css/common.css"/>"/>
    <!-- 当前页面样式 END -->
    <script type="text/javascript" src="<c:url value="/js/jquery-1.3.2.js" />"></script>
	<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
	<script type="text/javascript" src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
	<script type="text/javascript">
	 
	function queryForm(obj){
	 
		$("#"+obj.id).attr("disabled",true);
		$("#queryUserForm").attr("action","<%=basePath%>/mer/querySirectMerinfo.ct");
		$("#queryUserForm").submit();
		
	}
</script>
</head>
<body>
<s:form id="queryUserForm" action="/mer/querySirectMerinfo.ct" method="post" theme="simple">
<table class="tb">
    <tbody>
        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h2">POS收单运营管理平台</div></td>
        </tr>

        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h3">直营待审核商户查询</div></td>
        </tr>
 
       <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户号：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.merchantNo" />
               	</label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">商户简称：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.merchantName" maxlength="20"/>
                </label>
            </td>
        </tr>

        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">营业名称：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.merBrName" maxlength="25"/>
                </label>
            </td>
            <td align="right" class="tb-td">入网时间：</td>
			<td class="tb-td" >
				 <label class="tb-input-normal">
					<s:textfield    onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true,wdate:true,errDealMode:0});"    name="searchCondition.minDate"  />
				 </label>
				-
				 <label class="tb-input-normal">
					<s:textfield  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true,wdate:true,errDealMode:0});"   name="searchCondition.maxDate"   />
				</label>
			</td>
        </tr>
		<tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">法人名称：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.certifName" maxlength="25"/>
               	</label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">法人身份证：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.cardNo" maxlength="20"/>
                </label>
            </td>
        </tr>
        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">业务联系人名称：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.contactName" maxlength="25"/>
               	</label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">业务联系人手机号：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.phone" maxlength="15" />
                </label>
            </td>
        </tr>
        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">结算账号：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.accountNo" maxlength="25"/>
               	</label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">结算账户姓名：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.accountName" maxlength="20" />
                </label>
            </td>
        </tr>
        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户状态：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-mini">
                	<s:select list="#{4:'间连直营进件中',5:'间连直营被驳回'}"  headerKey="98" headerValue="全部"   name="searchCondition.merinfoFlag" />
               	</label>
            </td>
            <%--  <td align="right" class="tb-td">
                <div class="tb-h4">代理商：</div>
            </td>
            <td class="tb-td">
            	<select id="parentCode" name="searchCondition.parentCode" onchange="loadCity()"></select>-
            	<s:hidden id="henParentCode" value="%{searchCondition.parentCode}"/>
            	<select id="sonCode" name="searchCondition.sonCode"></select>
            	<s:hidden id="henSonCode" value="%{searchCondition.sonCode}"/>
            </td> --%>
        </tr>
        <tr class="tb-line">
            <td class="tb-td line-submit" align="right" colspan="4">
                <label class="tb-input-submit">
                    <input type="button" value="查询" id="queryBtn" onclick='queryForm(this)'/>
                </label>
                <label class="tb-input-submit">
                    <input type="reset" value="取消"/>
                </label>
            </td>
        </tr>
        <tr class="tb-line">
            <td class="tb-td line-submit" align="center" colspan="4">
                 <font color="red">
                 	<s:actionmessage/><s:actionerror/>
                 		<s:if test="#request.COUNT != null">
               				统计：当前查询条件共计[<font color="red"><s:property value="#request.COUNT"/></font>]条数据
               			</s:if>
                 </font>
            </td>
        </tr>
        <s:if test="#request.searchRsList != null && #request.searchRsList.size>0 ">
			<tr class="tb-line">
				<td class="tb-td paging"  align="left" colspan="4"> 
					 	<page:pageCount max_pages="11" totalPage="${requestScope.totalPage}"
						currentPage="${requestScope.currentPage}"
						action="${rootPath}/mer/queryMerinfoStatusForOne.ct?currentPage=" />

				</td>
			</tr>
		</s:if>
    </tbody>
</table>
</s:form>
<div class="big-tb">
    <table class="tb" style="width: 150%;">
        <thead>
            <tr class="tb-line">
                <th class="tb-th" colspan="20">商户基本信息列表</th>
            </tr>
            <tr class="tb-line bg-gray">
				<th class="tb-th">商户号</th>
				<th class="tb-th">商户简称</th>
				<th class="tb-th">营业名称</th>
				<th class="tb-th">结算方式</th>
				<th class="tb-th">商户类别</th>
				<th class="tb-th">所属机构</th>
				<th class="tb-th">所属分公司</th>
				<!-- <th class="tb-th">所属代理商</th> -->
				<th class="tb-th">直属代理商</th>
				<th class="tb-th">状态</th>
				<s:if test="#request.operationFlag==\"1\" && searchCondition.merinfoFlag==3">
					<th class="tb-th">领件人</th>
				</s:if>
				<th class="tb-th">业务联系人</th>
				<th class="tb-th">业务联系人电话</th>
				<th class="tb-th">法人</th>
				<th class="tb-th">法人证件号</th>
				<th class="tb-th">结算银行</th>
				<th class="tb-th">联行号</th>
				<th class="tb-th">结算银行账号名称</th>
				<th class="tb-th">结算银行账号</th>
				<th class="tb-th">商户地址</th>
            </tr>
        </thead>
        <tbody>
			<s:iterator value="#request.searchRsList" status="stat" id="sh">
				<tr class="tb-line" >
					<td class="tb-td">
						<s:property value="#sh.mid"/> 
					</td>
					<td class="tb-td"><s:property value="#sh.merName"/></td>
			        <td class="tb-td"><s:property value="#sh.merBrName"/></td>
			        <td class="tb-td">
			         
			        	<s:iterator value="#sh.merCycle" var="c" status="aaa">
			        	  <s:property value="#c" />
			        	</s:iterator>
			        </td>
			         <td class="tb-td"> 
			        	<s:if test="#sh.nationCd==\"0\"">个体户</s:if>
			        	<s:if test="#sh.nationCd==\"1\"">企业</s:if>
			        </td>
			        <td class="tb-td"><s:property value="#sh.merKind"/> </td>
			        <td class="tb-td">
	        				<s:if test="#sh.companyName ==null || #sh.companyName==''">暂无</s:if>
	        				<s:else><s:property value="#sh.companyName"/></s:else>
			         </td>
			        <%--  <td class="tb-td">
			         	<s:if test="#sh.oneAgentName ==null || #sh.oneAgentName==''">暂无</s:if>
	        			<s:else><s:property value="#sh.oneAgentName"/></s:else>
			         </td> --%>
			         <td class="tb-td">
			         	<s:if test="#sh.agentId ==null || #sh.agentId==''">暂无</s:if>
	        			<s:else><s:property value="#sh.agentId"/></s:else>
			         </td>
			        <td class="tb-td"><s:property value="#sh.flag"/> </td>
			        <s:if test="#sh.engName != null && #sh.engName!=\"\"">
			        	<td class="tb-td"><s:property value="#sh.engName"/> </td>
			        </s:if>
			        <td class="tb-td"><s:property value="#sh.perName"/></td>
			        <td class="tb-td"><s:property value="#sh.perPhone"/></td>
			        <td class="tb-td"><s:property value="#sh.interContact"/></td>
			        <td class="tb-td"><s:property value="#sh.cardNo"/></td>
			        <td class="tb-td"><s:property value="#sh.amount1"/></td>
			        <td class="tb-td"><s:property value="#sh.amount2"/></td>
			        <td class="tb-td"><s:property value="#sh.rsvl"/></td>
			        <td class="tb-td"><s:property value="#sh.rsvl3"/></td>
			        <td class="tb-td"><s:property value="#sh.addr"/></td>
			      </tr>
			</s:iterator>	
        </tbody>
    </table>
   
</div>
 <s:if test="#request.msg !=null">
		<script language="javascript">
			alert("${request.msg}");
		</script>
	</s:if>
</body>
</html>